package com.yuyue.springFramework.note02.entity;
/**
 * 通过类型装配对象
 */
public class AutowireByType {
    private Property1 property1;
    private Property2 property2;
    private Property3 property3;

    //set、get和toString方法
    public Property1 getProperty1() {
        return property1;
    }

    public void setProperty1(Property1 property1) {
        this.property1 = property1;
    }

    public Property2 getProperty2() {
        return property2;
    }

    public void setProperty2(Property2 property2) {
        this.property2 = property2;
    }

    public Property3 getProperty3() {
        return property3;
    }

    public void setProperty3(Property3 property3) {
        this.property3 = property3;
    }

    @Override
    public String toString() {
        return "AutowireByType{" +
                "property1=" + property1 +
                ", property2=" + property2 +
                ", property3=" + property3 +
                '}';
    }
}
